<?php
//我的劵
InitGP(array("action","commit","web","address","map","tel","operating_time","resolution","codebar","bus","pwd")); //初始化变量全局返回
if (!empty($commit)) {
	//处理更新资料操作
	$arrayedit=array(
		"web"=>$web,
		"address"=>Char_cv($address),
		"map"=>Char_cv($map),
		"tel"=>Char_cv($tel),
		"operating_time"=>Char_cv($operating_time),
		"resolution"=>Char_cv($resolution),
		"codebar"=>Char_cv($codebar),
		"bus"=>Char_cv($bus),
		"pwd"=>$pwd
		);
	//初始化对象
	include(INC_PATH."/suppliers.class.php");
	$sp=new SupplierClass();
	$msg=$sp->edit($_SUSERS['sid'],$arrayedit);
	if ($msg=="OK") {
		showmessage("修改成功！","s.php?action=settings",true);
	}else {
		showmessage($msg,"-1",false);	
	}
	
}else {
	//显示资料修改表单
	
	include template('suppliers_settings');//包含输出指定模板
}

?>